package ltd.hxya.novel.book.feign;

import ltd.hxya.novel.common.bean.Result;
import ltd.hxya.novel.common.to.book.BookTo;
import ltd.hxya.novel.common.vo.SearchParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;
import java.util.List;

@FeignClient("novel-crawl")
public interface CrawlFeignService {

    @PostMapping("/crawl/search/crawlBook")
    public Result<List<BookTo>> crawlBook(@RequestBody SearchParam param) throws IOException;
}
